package com.itentbase.match.controller.web;

import com.itentbase.match.common.utils.R;
import com.itentbase.match.common.utils.Rs;
import com.itentbase.match.pojo.po.FootballMatch;
import com.itentbase.match.service.FootballMatchService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:足球赛事控制层（web 用户端）
 * @author:wjl
 * @create: 2024-12-26 14:25
 */
@RequestMapping("/web/footballMatch")
@RestController
@RequiredArgsConstructor
@Slf4j
public class FootballMatchController {
    private final FootballMatchService service;

    @GetMapping("/selectList")
    public R<List<FootballMatch>> selectList(){
        return Rs.success(service.selectList());

    }
}
